package com.kfgj.hkp.dao.customer.impl;

import com.kfgj.hkp.common.dataaccess.mybatis.AbstractMyBatisDao;
import com.kfgj.hkp.dao.customer.ICustomerWaitAddDbDao;
import com.kfgj.hkp.entity.customer.CustomerWaitAddEntity;
import org.springframework.stereotype.Repository;

@Repository
public class CustomerWaitAddDbDaoImpl extends AbstractMyBatisDao<CustomerWaitAddEntity,Long> implements ICustomerWaitAddDbDao {
    @Override
    public CustomerWaitAddEntity detail (String cusPhone) {
        return this.getSqlSession().selectOne(this.mapperNamespace + "detail", cusPhone);
    }

    @Override
    public int deleteCusWaitAdd (String cusPhone) {
        return this.getSqlSession ().delete (this.mapperNamespace+"deleteCusWaitAdd",cusPhone);
    }


}
